<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件管理系统</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='order_list.css') }}">
</head>
<body>
<div class="navbar">
    <a href="" class="logo">
        WiPAS
    </a>
    {% if user_info.get("role") == 1 %}
     <div class="buttons">
        <a href="/common/home" class="button">Home</a>
        <a href="/common/team" class="button">Team</a>
        <a href="/common/project" class="button">Project</a>
        <div class="search-box">
            <input type="text" placeholder="搜索你需要的文件...">
        </div>
    </div>
    {% else %}
    <div class="buttons">
        <a href="/common/home" class="button">Home</a>
        <a href="/common/team" class="button">Team</a>
        <a href="/common/project" class="button">Project</a>
        <a href="/admin/staff" class="button">Staff</a>
        <a href="/admin/upload" class="button">Upload</a>
        <a href="/admin/manage" class="button">Manage</a>
        <div class="search-box">
            <input type="text" placeholder="搜索你需要的文件...">
        </div>
    </div>
    {% endif %}

    <div class="description">
        <div class="dropdown">
            <button class="dropbtn">{{ user_info.get("username") }}</button>
            <div class="dropdown-content">
                <a href="/common/login">exit</a>
            </div>
        </div>
    </div>
</div>
<div class="content-container">
    {% block content %}{% endblock %}
</div>
</body>
</html>